package qianFeng.day1;

import java.util.Scanner;

public class demo1 {
    public static void main(String[] args) {
        String name="周杰伦";
        int grade;
        int count=0;
        while (count<10){
            System.out.println("早上好");
            count++;
        }
        Scanner input=new Scanner(System.in);
        System.out.print("输入学生姓名：");
        name= input.nextLine();
        System.out.print("输入学生成绩：");
        grade= input.nextShort();
        while (grade<60){
            System.out.println("上午编程下午阅读！");
            grade+=5;
            System.out.println("调整成绩为："+grade);
            if(grade>=60)
                System.out.println("成绩合格，准予毕业！");
        }
        System.out.println("--------------------------");
        System.out.println("2006年人口总数为8万，问何时人口突破20万！");
        //System.out.print(name+"\n");
        double man_num=80000;
        int year=2006;
        while(man_num<=200000){
            man_num+=man_num*0.25;
            year+=1;
            System.out.println(year+"年，人口总数为："+(int)man_num);
        }
    }
}
